package com.atguigu.yygh.statistics.service.impl;

import com.atguigu.yygh.order.client.OrderInfoFeignClient;
import com.atguigu.yygh.statistics.service.StatisticService;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/9/11 10:48
 */
@Service
public class StatisticServiceImpl implements StatisticService {

    @Autowired
    private OrderInfoFeignClient orderInfoFeignClient;

    @Override
    public Map<String, Object> getCountByOrderInfo(OrderCountQueryVo orderCountQueryVo) {
        return orderInfoFeignClient.getCount(orderCountQueryVo);
    }
}
